{% for host in groups['all_nodes'] %}
address=/{{host}}/{{ hostvars[host]['ansible_ssh_host'] }}
{% endfor %}
address=/{{APP_DOMAIN}}/{{hostvars[groups['worker'][0]]['ansible_ssh_host']}}